import axios from "axios"
export const addService = (parameter) => {
	return new Promise(resolve => {
		axios({
			method: "post",
			url: "api/service/",
			data: parameter
		})
	})
}
export const getService = async () => {
	const res = await axios({
		method: "get",
		url: "api/service/",
	})
	return res.data;
}

export const removeService = async (_id) => {
	const res = await axios({
		method: "delete",
		url: "api/service/"+_id,
	})
	return res.data;
}


export const updateService = async (_id,parameter) => {
	const res = await axios({
		method: "patch",
		url: "api/service/"+_id,
		data: parameter
	})
	return res.data;
}

